import inventorTotalComponent from './report/inventory_total/index.vue'
import expreryComponent from './report/experimental_inactive/index.vue'
import productComponent from './report/production_inactive/index.vue'
import finishedComponent from './report/finished_product/index.vue'
import capacityComponent from './report/capacity/index.vue'
import looseComponent from './report/loose_plates/index.vue'
import dailyComponent from './report/daily_report/index.vue'
import JumpAnimation from './jump_animation/index.vue'
import allInventoryComponent from './report/all_inventory/index.vue'
const components = {
    inventorTotalComponent,
    expreryComponent,
    productComponent,
    finishedComponent,
    capacityComponent,
    looseComponent,
    dailyComponent,
    JumpAnimation,
    allInventoryComponent
}
const install = (Vue = {}) => {
    if (install.installed) return
    Object.keys(components).forEach((component) => {
      Vue.component(components[component].name, components[component])
    })
  
    install.installed = true
  }
  
  install.installed = false
  
  if (typeof window !== 'undefined' && window.Vue) {
    install(window.Vue)
    install.installed = true
  }
  
  const Vcomp = {
    ...components,
    install
  }
  
  export default Vcomp


